/*
 * @Description: 子设备管理
 * @Author: Wang ZhongWang
 * @Date: 2022-02-20 10:11:35
 * @LastEditTime: 2023-02-28 14:40:10
 * @LastEditors: zhangweili zhang_weili@uxsino.com
 */

import request from '@/utils/request'

/**
 * 子设备分页查询
 * @param query
 */
export function getListPage(query) {
  var params = JSON.parse(JSON.stringify(query))
  return request({
    url: '/iot/deviceInfo/pageList',
    method: 'post',
    data: params
  })
}

/**
 * 子设备修改
 * @param query
 */
export function updateDeviceInfo(query) {
  var params = JSON.parse(JSON.stringify(query))
  return request({
    url: '/iot/deviceInfo/updateDeviceInfo',
    method: 'post',
    data: params
  })
}

/**
 * 子设备详情获取
 * @param query
 */
export function getById(query) {
  var params = JSON.parse(JSON.stringify(query))
  return request({
    url: '/iot/deviceInfo/getById',
    method: 'get',
    params: params
  })
}
